import Layout from "@/layout"; //导入公共组件

export default {
  path: "/employees",
  component: Layout,
  // 配置二级路由
  children: [
    {
      path: "", // 不写path 地址栏输入上面的一级路由地址，二级路由会默认显示
      name: "employees",
      component: () => import("@/views/employees"),
      meta: {
        title: "员工",
        icon: "dashboard"
      }
    },
    {
      path: "import",
      name: "import",
      hidden: true, // 可以控制当前路由是否显示
      component: () => import("@/views/employees/import/index.vue")
    },
    {
      path: "details",
      name: "details",
      hidden: true, // 可以控制当前路由是否显示
      component: () => import("@/views/employees/detail/index.vue")
    },
    {
      path: "print/:id", // 动态路由  参数接收：this.$route.query
      name: "print",
      hidden: true, // 可以控制当前路由是否显示
      component: () => import("@/views/employees/print/index.vue")
    }
  ]
};
